﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace simWaifu
{
    public partial class FormChangeMood : Form
    {
        FormMain formMain = null;

        public FormChangeMood()
        {
            InitializeComponent();
        }

        public FormChangeMood(FormMain fM)
        {
            InitializeComponent();
            formMain = fM;
        }

        private void FormChangeMood_Load(object sender, EventArgs e)
        {
            listBoxMood.Enabled = false;
            int m;
            if (Waifu.regularMoods.Count > 0)
            {
                for (m = 0; m < Waifu.regularMoods.Count; m++)
                {
                    listBoxMood.Items.Add(Waifu.GetRegularMoodName(m));
                }
                listBoxMood.SelectedIndex = Waifu.curRegularMood;
                listBoxMood.Enabled = true;
            }
        }

        private void listBoxMood_SelectedIndexChanged(object sender, EventArgs e)
        {
            Waifu.curRegularMood = listBoxMood.SelectedIndex;
            formMain.UpdateTitlebar();
            formMain.ChangePicSoundMessage();
        }
    }
}
